package com.industrial.app.controller;

import com.industrial.app.service.IndexService;
import com.industrial.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/biz/index")
public class IndexController {

    @Autowired
    private IndexService indexService;


    @GetMapping("/getIndexMenu")
    public AjaxResult getIndexMenu(){
        Map<String,Object> result = indexService.getIndexMenu();
        return AjaxResult.success(result);
    }
}
